Skip to content

Rename s_populate_F_igr_buffers to s_populate_scalar_buffers - #2407

Merged
wilfonba merged 1 commit into
MFlowCode:masterfrom
wilfonba:scalarBufferRename
Nov 23, 2026
Merged

wilfonba merged 1 commit into
MFlowCode:masterfrom
wilfonba:scalarBufferRename

Conversation

@wilfonba

@wilfonba wilfonba commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Contribution Policy

All contributions are expected to demonstrate:

  • A clear understanding of the codebase
  • Alignment with product direction
  • Thoughtful reasoning behind changes
  • Evidence of real-world usage or hands-on experience with the problem

If these expectations are not met, we would prefer to implement the changes ourselves rather than spend time reviewing low-effort submissions.

Summary

s_populate_F_igr_buffers (src/common/m_boundary_common.fpp) fills the ghost cells of a single scalar field: physical boundaries through per-cell periodic, reflective and extrapolation routines, processor boundaries through s_mpi_sendrecv_variables_buffers. Nothing in it depends on IGR; only its names and comments say so. This PR renames it and its helpers so other solvers that need a scalar ghost fill can call it under a name that describes what it does. It is a rename only: no behaviour, argument order or GPU directive changes, and no CFD result changes.

Before After
s_populate_F_igr_buffers s_populate_scalar_buffers
s_populate_F_igr_bc_direction s_populate_scalar_bc_direction
s_F_igr_periodic s_scalar_periodic
s_F_igr_reflective s_scalar_reflective
s_F_igr_ghost_cell_extrapolation s_scalar_ghost_cell_extrapolation
dummy argument jac_sf (in those five routines) scalar_sf

The GPU_ROUTINE name strings of the three per-cell routines follow the rename, and six doc comments that said "IGR Jacobian" now describe a generic scalar field. jac_sf in src/simulation/m_igr.fpp is unchanged, since there it is the IGR Jacobian; that file changes only at its one call site.

Three files, 54 lines changed each way. After mapping old names to new, the only remaining differences are the doc comments. F_igr no longer appears in src, docs or toolchain.

Type of change

  • Refactor

Testing

CPU, NVHPC 26.3: all targets build; the 24 IGR tests pass against the committed goldens, none regenerated; the formatter changes nothing; ./mfc.sh precheck passes.

Not verified: GPU builds (the device-routine changes are name-only but were not compiled for a GPU target) and case-optimized builds.

This PR was assisted by Claude Code.

@wilfonba
wilfonba requested a review from a team as a code owner November 22, 2026 20:38
@wilfonba
wilfonba requested review from danieljvickers and removed request for a team November 22, 2026 20:38
@github-actions

Copy link
Copy Markdown

Claude Code Review

Head SHA: c3095a3

Files changed:

  • 3
  • src/common/m_boundary_common.fpp
  • src/common/m_boundary_primitives.fpp
  • src/simulation/m_igr.fpp

Findings:
No issues found. Files checked in step 4: m_boundary_common.fpp, m_boundary_primitives.fpp, m_igr.fpp (pure rename of the IGR-specific scalar BC routines; all definitions, GPU_ROUTINE function_name strings, the public list, and the only external caller in m_igr.fpp are updated consistently, and no other references to the old names exist in the tree).

@codecov

codecov Bot commented Nov 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 67.56757% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.14%. Comparing base (398733e) to head (c3095a3).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/common/m_boundary_primitives.fpp 66.66% 8 Missing ⚠️
src/common/m_boundary_common.fpp 75.00% 3 Missing ⚠️
src/simulation/m_igr.fpp 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2407   +/-   ##
=======================================
  Coverage   66.14%   66.14%           
=======================================
  Files         112      112           
  Lines       31093    31093           
  Branches     4749     4749           
=======================================
  Hits        20567    20567           
  Misses       6675     6675           
  Partials     3851     3851           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wilfonba
wilfonba merged commit 32e4317 into MFlowCode:master Nov 23, 2026
55 of 66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants